﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using AtomicCms.Common.Entities;
using AtomicCms.Common.IServices;
using AtomicCms.Common.Models;
using AtomicCms.Services.Abstract;

namespace AtomicCms.Web.Controllers
{
    public class WidgetsController : Controller
    {
        private readonly IWidgetService _service;

        public WidgetsController(IWidgetService service)
        {
            _service = service;
        }

        //
        // GET: /Widgets/

        public ActionResult TagCloud()
        {
            IList<TagCount> tagCounts = _service.GetTagCounts();
            return PartialView(tagCounts);
        }

    }
}
